<!DOCTYPE html>
<html>
<head>

<meta name="viewport" content="width=800">
<style>
html { font-size: 16px; }
body { width: 800px; margin: 0; overflow-y: hidden; }
</style>

<script>
  if (window.testRunner)
    testRunner.setPrinting();
</script>
</head>
<body>

<div>
  This text should not be autosized because the document is printing.<br>
  There is enough text that we should <b>autosize</b> the text initially, but while printing we should not be autosized.<br>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

</body>
</html>